-- GENERATED SPELL FOR [Snowplain Disciple] --


function spell0_26705(pUnit, Event) --@Frostbolt,n/a--
pUnit:FullCastSpellOnTarget(61730,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26705', 8500, 1)
end

function spell1_26705(pUnit, Event) --@Renewing Beam,n/a--
pUnit:FullCastSpellOnTarget(52011,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26705', 6000, 1)
end

function Sorts_26705(pUnit, Event)
local choix_sorts_26705 = math.random(0, 1)
if choix_sorts_26705 == 0 then
pUnit:RegisterEvent('spell0_26705', 1, 1)
end
if choix_sorts_26705 == 1 then
pUnit:RegisterEvent('spell1_26705', 1, 1)
end
end

function mob26705_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26705', math.random(1500, 3000), 1)
end

function mob26705_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26705_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26705_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26705, 1, 'mob26705_Action')
RegisterUnitEvent(26705, 2, 'mob26705_Leave')
RegisterUnitEvent(26705, 3, 'mob26705_Kill')
RegisterUnitEvent(26705, 4, 'mob26705_Die')
